package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 资讯广告位TO
 * 
 * @author Administrator
 * 
 */
public class NewsAdTO implements Parcelable {
	@SerializedName("id")
	private long id;

	@SerializedName("title")
	private String title;

	@SerializedName("img")
	private String image;

	public NewsAdTO() {
	}

	public NewsAdTO(Parcel source) {
		this.id = source.readLong();
		this.title = source.readString();
		this.image = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(id);
		dest.writeString(title);
		dest.writeString(image);
	}

	public static final Creator<NewsAdTO> CREATOR = new Creator<NewsAdTO>() {

		@Override
		public NewsAdTO[] newArray(int size) {
			return new NewsAdTO[size];
		}

		@Override
		public NewsAdTO createFromParcel(Parcel source) {
			return new NewsAdTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

}
